package org.lionsoul.websnail.listener;

import org.lionsoul.websnail.Spider;
import org.lionsoul.websnail.task.Task;

/**
 * Page Task listener
 *
 * @author yangjian
 */
public interface TaskListener {
    /**
     * task process successfully
     */
    public void onSuccess(Spider spider, Task task);

    /**
     * task process failed
     */
    public void onFailed(Spider spider, Task task);
}
